<!-- HTML header for doxygen 1.9.6-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="zh">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.6"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>COMMONS-NET: commonsNet.ftp.FTPTimestampParserImpl类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
  $(document).ready(function() { init_search(); });
/* @license-end */
</script>
<link href="style.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectalign">
   <div id="projectname">COMMONS-NET
   </div>
  </td>
    <td>        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <span id="MSearchSelect"                onmouseover="return searchBox.OnSearchSelectShow()"                onmouseout="return searchBox.OnSearchSelectHide()">&#160;</span>
          <input type="text" id="MSearchField" value="" placeholder="搜索" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.svg" alt=""/></a>
          </span>
        </div>
</td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.9.6 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search/",'.html');
/* @license-end */
</script>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(document).ready(function(){initNavTree('classcommonsNet_1_1ftp_1_1FTPTimestampParserImpl.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">载入中...</div>
<div class="SRStatus" id="Searching">搜索中...</div>
<div class="SRStatus" id="NoMatches">未找到</div>
</div>
</div>
</div>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="#pri-attribs">Private 属性</a> &#124;
<a href="classcommonsNet_1_1ftp_1_1FTPTimestampParserImpl-members.html">所有成员列表</a>  </div>
  <div class="headertitle"><div class="title">commonsNet.ftp.FTPTimestampParserImpl类 参考</div></div>
</div><!--header-->
<div class="contents">

<p><code><a class="el" href="">FTPTimestampParser</a></code> 接口的默认实现，同时实现了 <code><a class="el" href="">Configurable</a></code> 接口，允许从外部配置解析。  
 <a href="classcommonsNet_1_1ftp_1_1FTPTimestampParserImpl.html#details">更多...</a></p>
<div class="dynheader">
类 commonsNet.ftp.FTPTimestampParserImpl 继承关系图:</div>
<div class="dyncontent">
 <div class="center">
  <img src="classcommonsNet_1_1ftp_1_1FTPTimestampParserImpl.png" usemap="#commonsNet.ftp.FTPTimestampParserImpl_map" alt=""/>
  <map id="commonsNet.ftp.FTPTimestampParserImpl_map" name="commonsNet.ftp.FTPTimestampParserImpl_map">
<area href="interfacecommonsNet_1_1ftp_1_1FTPTimestampParser.html" title="用于解析FTP服务器中的时间戳。" alt="commonsNet.ftp.FTPTimestampParser" shape="rect" coords="0,0,246,24"/>
<area href="interfacecommonsNet_1_1ftp_1_1Configurable.html" title="Configurable接口为其他类（尤其是列表解析器）添加了可配置性的功能，通过提供的 FTPClientConfig 对象来实现配置。" alt="commonsNet.ftp.Configurable" shape="rect" coords="256,0,502,24"/>
  </map>
</div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-methods" name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:a4b2f30ceaeb697faac64a4ddd3898d61"><td class="memItemLeft" align="right" valign="top">public&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1ftp_1_1FTPTimestampParserImpl.html#a4b2f30ceaeb697faac64a4ddd3898d61">init</a> ()</td></tr>
<tr class="memdesc:a4b2f30ceaeb697faac64a4ddd3898d61"><td class="mdescLeft">&#160;</td><td class="mdescRight">构造一个默认的 FTPTimestampParserImpl 对象实例。  <br /></td></tr>
<tr class="separator:a4b2f30ceaeb697faac64a4ddd3898d61"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4ecfa6b4ff7a34a12fbff6a97164d247"><td class="memItemLeft" align="right" valign="top">public override func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1ftp_1_1FTPTimestampParserImpl.html#a4ecfa6b4ff7a34a12fbff6a97164d247">configure</a> (config: ?<a class="el" href="classcommonsNet_1_1ftp_1_1FTPClientConfig.html">FTPClientConfig</a>)</td></tr>
<tr class="memdesc:a4ecfa6b4ff7a34a12fbff6a97164d247"><td class="mdescLeft">&#160;</td><td class="mdescRight">根据配置信息配置 FTPTimestampParser 。  <br /></td></tr>
<tr class="separator:a4ecfa6b4ff7a34a12fbff6a97164d247"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a299f0c97351dd564e02e0c098a9ebdcb"><td class="memItemLeft" align="right" valign="top">public override func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1ftp_1_1FTPTimestampParserImpl.html#a299f0c97351dd564e02e0c098a9ebdcb">parseTimestamp</a> (timestampStr: String): DateTime</td></tr>
<tr class="memdesc:a299f0c97351dd564e02e0c098a9ebdcb"><td class="mdescLeft">&#160;</td><td class="mdescRight">实现 FTPTimestampParser 接口中的 <code><a class="el" href="">parseTimestamp(timestampStr: String) </a></code>方法。  <br /></td></tr>
<tr class="separator:a299f0c97351dd564e02e0c098a9ebdcb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acd9087bff0135314eb4eadf2a9dfae1a"><td class="memItemLeft" align="right" valign="top">public func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1ftp_1_1FTPTimestampParserImpl.html#acd9087bff0135314eb4eadf2a9dfae1a">parseTimestamp</a> (timestamp: String, serverTime: DateTime): DateTime</td></tr>
<tr class="memdesc:acd9087bff0135314eb4eadf2a9dfae1a"><td class="mdescLeft">&#160;</td><td class="mdescRight">解析时间戳  <br /></td></tr>
<tr class="separator:acd9087bff0135314eb4eadf2a9dfae1a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a922a8f8bf58442b1562b5e903c592809"><td class="memItemLeft" align="right" valign="top">public func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1ftp_1_1FTPTimestampParserImpl.html#a922a8f8bf58442b1562b5e903c592809">getDefaultDateFormatStr</a> ()</td></tr>
<tr class="memdesc:a922a8f8bf58442b1562b5e903c592809"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取默认日期格式。  <br /></td></tr>
<tr class="separator:a922a8f8bf58442b1562b5e903c592809"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8276099631d3f6ce1a4a85c4c92a21fb"><td class="memItemLeft" align="right" valign="top">public func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1ftp_1_1FTPTimestampParserImpl.html#a8276099631d3f6ce1a4a85c4c92a21fb">getRecentDateFormatStr</a> ()</td></tr>
<tr class="memdesc:a8276099631d3f6ce1a4a85c4c92a21fb"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取最近日期格式。  <br /></td></tr>
<tr class="separator:a8276099631d3f6ce1a4a85c4c92a21fb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a95cd18272ed3bc3deeb955d9b83870be"><td class="memItemLeft" align="right" valign="top">public func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1ftp_1_1FTPTimestampParserImpl.html#a95cd18272ed3bc3deeb955d9b83870be">getServerTimeZone</a> ()</td></tr>
<tr class="memdesc:a95cd18272ed3bc3deeb955d9b83870be"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取服务器的时区。  <br /></td></tr>
<tr class="separator:a95cd18272ed3bc3deeb955d9b83870be"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0d495c41df28f9756a67f398ca4b413b"><td class="memItemLeft" align="right" valign="top">public func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1ftp_1_1FTPTimestampParserImpl.html#a0d495c41df28f9756a67f398ca4b413b">setDefaultDateFormatStr</a> (format: String)</td></tr>
<tr class="memdesc:a0d495c41df28f9756a67f398ca4b413b"><td class="mdescLeft">&#160;</td><td class="mdescRight">设置默认日期格式。  <br /></td></tr>
<tr class="separator:a0d495c41df28f9756a67f398ca4b413b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa2f228755c814d20cdaf618a26ecbad5"><td class="memItemLeft" align="right" valign="top">public func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1ftp_1_1FTPTimestampParserImpl.html#aa2f228755c814d20cdaf618a26ecbad5">setRecentDateFormatStr</a> (format: ?String)</td></tr>
<tr class="memdesc:aa2f228755c814d20cdaf618a26ecbad5"><td class="mdescLeft">&#160;</td><td class="mdescRight">设置最近日期格式。  <br /></td></tr>
<tr class="separator:aa2f228755c814d20cdaf618a26ecbad5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a080553396c6cdeb5a5691fb97fd970e5"><td class="memItemLeft" align="right" valign="top">public func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1ftp_1_1FTPTimestampParserImpl.html#a080553396c6cdeb5a5691fb97fd970e5">setServerTimeZone</a> (timeZone: TimeZone)</td></tr>
<tr class="memdesc:a080553396c6cdeb5a5691fb97fd970e5"><td class="mdescLeft">&#160;</td><td class="mdescRight">设置最服务器时区。  <br /></td></tr>
<tr class="separator:a080553396c6cdeb5a5691fb97fd970e5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1f7c9a6abb2e11f9818293464597fae1"><td class="memItemLeft" align="right" valign="top">func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="interfacecommonsNet_1_1ftp_1_1FTPTimestampParser.html#a1f7c9a6abb2e11f9818293464597fae1">parseTimestamp</a> (timestampStr: String): DateTime</td></tr>
<tr class="memdesc:a1f7c9a6abb2e11f9818293464597fae1"><td class="mdescLeft">&#160;</td><td class="mdescRight">解析提供的日期时间戳参数。此参数通常已通过正则表达式机制从较长的FTP列表中提取。  <br /></td></tr>
<tr class="separator:a1f7c9a6abb2e11f9818293464597fae1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aac07bac5dbb621a3ad5dd4131c5c75e9"><td class="memItemLeft" align="right" valign="top">func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="interfacecommonsNet_1_1ftp_1_1Configurable.html#aac07bac5dbb621a3ad5dd4131c5c75e9">configure</a> (config: ?<a class="el" href="classcommonsNet_1_1ftp_1_1FTPClientConfig.html">FTPClientConfig</a>): Unit</td></tr>
<tr class="memdesc:aac07bac5dbb621a3ad5dd4131c5c75e9"><td class="mdescLeft">&#160;</td><td class="mdescRight">使用提供 <code><a class="el" href="classcommonsNet_1_1ftp_1_1FTPClientConfig.html">commonsNet.ftp.FTPClientConfig</a></code> 对象来配置当前的 Configurable 对象。  <br /></td></tr>
<tr class="separator:aac07bac5dbb621a3ad5dd4131c5c75e9"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pri-attribs" name="pri-attribs"></a>
Private 属性</h2></td></tr>
<tr class="memitem:ab5262a49f3b79e46195c8020eef15ebf"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1ftp_1_1FTPTimestampParserImpl.html#ab5262a49f3b79e46195c8020eef15ebf">var defaultDateFormatString</a> : String = UnixFTPEntryParser.DEFAULT_DATE_FORMAT</td></tr>
<tr class="memdesc:ab5262a49f3b79e46195c8020eef15ebf"><td class="mdescLeft">&#160;</td><td class="mdescRight">默认日期格式，不包括最近日期（格式中包括年份）。  <br /></td></tr>
<tr class="separator:ab5262a49f3b79e46195c8020eef15ebf"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a583a6d866674aca523af93d1340f08af"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1ftp_1_1FTPTimestampParserImpl.html#a583a6d866674aca523af93d1340f08af">var recentDateFormatString</a> : ?String = UnixFTPEntryParser.DEFAULT_RECENT_DATE_FORMAT</td></tr>
<tr class="memdesc:a583a6d866674aca523af93d1340f08af"><td class="mdescLeft">&#160;</td><td class="mdescRight">用于格式化最近日期的格式（没有年份）。可能为空。  <br /></td></tr>
<tr class="separator:a583a6d866674aca523af93d1340f08af"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aeead6db1d938285a0ff7e2c9c80b6af8"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1ftp_1_1FTPTimestampParserImpl.html#aeead6db1d938285a0ff7e2c9c80b6af8">var serverTimeZone</a> : TimeZone = TimeZone.Local</td></tr>
<tr class="memdesc:aeead6db1d938285a0ff7e2c9c80b6af8"><td class="mdescLeft">&#160;</td><td class="mdescRight">服务器所在的时区  <br /></td></tr>
<tr class="separator:aeead6db1d938285a0ff7e2c9c80b6af8"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p><code><a class="el" href="">FTPTimestampParser</a></code> 接口的默认实现，同时实现了 <code><a class="el" href="">Configurable</a></code> 接口，允许从外部配置解析。 </p>
</div><h2 class="groupheader">构造及析构函数说明</h2>
<a id="a4b2f30ceaeb697faac64a4ddd3898d61" name="a4b2f30ceaeb697faac64a4ddd3898d61"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4b2f30ceaeb697faac64a4ddd3898d61">&#9670;&#160;</a></span>init()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">public commonsNet.ftp.FTPTimestampParserImpl.init </td>
          <td>(</td>
          <td class="paramtype"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>构造一个默认的 FTPTimestampParserImpl 对象实例。 </p>

</div>
</div>
<h2 class="groupheader">成员函数说明</h2>
<a id="a4ecfa6b4ff7a34a12fbff6a97164d247" name="a4ecfa6b4ff7a34a12fbff6a97164d247"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4ecfa6b4ff7a34a12fbff6a97164d247">&#9670;&#160;</a></span>configure()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">public override func commonsNet.ftp.FTPTimestampParserImpl.configure </td>
          <td>(</td>
          <td class="paramname"><em>config</em>:&#160;</td>
          <td class="paramtype">?FTPClientConfig</td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>根据配置信息配置 FTPTimestampParser 。 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">config</td><td>服务器配置</td></tr>
  </table>
  </dd>
</dl>
<dl class="exception"><dt>异常</dt><dd>
  <table class="exception">
    <tr><td class="paramname">NoneValueException</td><td>提供的配置中 defaultDateFormatStr 为 None </td></tr>
  </table>
  </dd>
</dl>

<p>实现了 <a class="el" href="interfacecommonsNet_1_1ftp_1_1Configurable.html#aac07bac5dbb621a3ad5dd4131c5c75e9">commonsNet.ftp.Configurable</a>.</p>

</div>
</div>
<a id="a922a8f8bf58442b1562b5e903c592809" name="a922a8f8bf58442b1562b5e903c592809"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a922a8f8bf58442b1562b5e903c592809">&#9670;&#160;</a></span>getDefaultDateFormatStr()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">public func commonsNet.ftp.FTPTimestampParserImpl.getDefaultDateFormatStr </td>
          <td>(</td>
          <td class="paramtype"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>获取默认日期格式。 </p>
<dl class="section return"><dt>返回</dt><dd>表示默认日期格式的字符串 </dd></dl>

</div>
</div>
<a id="a8276099631d3f6ce1a4a85c4c92a21fb" name="a8276099631d3f6ce1a4a85c4c92a21fb"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8276099631d3f6ce1a4a85c4c92a21fb">&#9670;&#160;</a></span>getRecentDateFormatStr()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">public func commonsNet.ftp.FTPTimestampParserImpl.getRecentDateFormatStr </td>
          <td>(</td>
          <td class="paramtype"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>获取最近日期格式。 </p>
<dl class="section return"><dt>返回</dt><dd>表示最近日期格式的字符串 </dd></dl>

</div>
</div>
<a id="a95cd18272ed3bc3deeb955d9b83870be" name="a95cd18272ed3bc3deeb955d9b83870be"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a95cd18272ed3bc3deeb955d9b83870be">&#9670;&#160;</a></span>getServerTimeZone()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">public func commonsNet.ftp.FTPTimestampParserImpl.getServerTimeZone </td>
          <td>(</td>
          <td class="paramtype"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>获取服务器的时区。 </p>
<dl class="section return"><dt>返回</dt><dd>服务器所在的时区 </dd></dl>

</div>
</div>
<a id="acd9087bff0135314eb4eadf2a9dfae1a" name="acd9087bff0135314eb4eadf2a9dfae1a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#acd9087bff0135314eb4eadf2a9dfae1a">&#9670;&#160;</a></span>parseTimestamp() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">public func commonsNet.ftp.FTPTimestampParserImpl.parseTimestamp </td>
          <td>(</td>
          <td class="paramname"><em>timestamp</em>:&#160;</td>
          <td class="paramtype">String, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramname"><em>serverTime</em>:&#160;</td>
          <td class="paramtype">DateTime&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td>: DateTime </td>
        </tr>
      </table>
</div><div class="memdoc">

<p>解析时间戳 </p>
<p>如果已定义 <code><a class="el" href="">recentDateFormatString</a></code> 成员，则尝试使用它解析提供的字符串。如果解析失败，或者未定义该成员，则尝试使用 <code><a class="el" href="">defaultDateFormat</a></code> 成员进行解析。如果仍然失败，抛出异常。<br  />
 此方法允许传入一个表示服务器当前时间的 DateTime 实例。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">timestampStr</td><td>要解析的时间戳 </td></tr>
    <tr><td class="paramname">serverTime</td><td>服务器的当前时间 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>包含解析后的时间戳的 DateTime 对象 </dd></dl>
<dl class="exception"><dt>异常</dt><dd>
  <table class="exception">
    <tr><td class="paramname">TimeParseException</td><td>当无法正常解析时，或存在同一 format 的多次取值 </td></tr>
    <tr><td class="paramname">IllegalArgumentException</td><td>format格式不正确 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a299f0c97351dd564e02e0c098a9ebdcb" name="a299f0c97351dd564e02e0c098a9ebdcb"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a299f0c97351dd564e02e0c098a9ebdcb">&#9670;&#160;</a></span>parseTimestamp() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">public override func commonsNet.ftp.FTPTimestampParserImpl.parseTimestamp </td>
          <td>(</td>
          <td class="paramname"><em>timestampStr</em>:&#160;</td>
          <td class="paramtype">String</td><td>)</td>
          <td>: DateTime </td>
        </tr>
      </table>
</div><div class="memdoc">

<p>实现 FTPTimestampParser 接口中的 <code><a class="el" href="">parseTimestamp(timestampStr: String) </a></code>方法。 </p>
<p>如果已定义 <code><a class="el" href="">recentDateFormatString</a></code> 成员，则尝试使用它解析提供的字符串。如果解析失败，或者未定义该成员，则尝试使用 <code><a class="el" href="">defaultDateFormat</a></code> 成员进行解析。如果仍然失败，抛出异常。<br  />
 此方法假设服务器时间与本地时间相同。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">timestampStr</td><td>要解析的时间戳</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>包含解析后的时间戳的 DateTime 对象</dd></dl>
<dl class="exception"><dt>异常</dt><dd>
  <table class="exception">
    <tr><td class="paramname">TimeParseException</td><td>当无法正常解析时，或存在同一 format 的多次取值 </td></tr>
    <tr><td class="paramname">IllegalArgumentException</td><td>format格式不正确 </td></tr>
  </table>
  </dd>
</dl>

<p>实现了 <a class="el" href="interfacecommonsNet_1_1ftp_1_1FTPTimestampParser.html#a1f7c9a6abb2e11f9818293464597fae1">commonsNet.ftp.FTPTimestampParser</a>.</p>

</div>
</div>
<a id="a0d495c41df28f9756a67f398ca4b413b" name="a0d495c41df28f9756a67f398ca4b413b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0d495c41df28f9756a67f398ca4b413b">&#9670;&#160;</a></span>setDefaultDateFormatStr()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">public func commonsNet.ftp.FTPTimestampParserImpl.setDefaultDateFormatStr </td>
          <td>(</td>
          <td class="paramname"><em>format</em>:&#160;</td>
          <td class="paramtype">String</td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>设置默认日期格式。 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">format</td><td>表示默认日期格式的字符串 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="aa2f228755c814d20cdaf618a26ecbad5" name="aa2f228755c814d20cdaf618a26ecbad5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa2f228755c814d20cdaf618a26ecbad5">&#9670;&#160;</a></span>setRecentDateFormatStr()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">public func commonsNet.ftp.FTPTimestampParserImpl.setRecentDateFormatStr </td>
          <td>(</td>
          <td class="paramname"><em>format</em>:&#160;</td>
          <td class="paramtype">?String</td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>设置最近日期格式。 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">format</td><td>表示最近日期格式的字符串 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a080553396c6cdeb5a5691fb97fd970e5" name="a080553396c6cdeb5a5691fb97fd970e5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a080553396c6cdeb5a5691fb97fd970e5">&#9670;&#160;</a></span>setServerTimeZone()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">public func commonsNet.ftp.FTPTimestampParserImpl.setServerTimeZone </td>
          <td>(</td>
          <td class="paramname"><em>timeZone</em>:&#160;</td>
          <td class="paramtype">TimeZone</td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>设置最服务器时区。 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">timeZone</td><td>用于配置的时区 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<h2 class="groupheader">类成员变量说明</h2>
<a id="ab5262a49f3b79e46195c8020eef15ebf" name="ab5262a49f3b79e46195c8020eef15ebf"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab5262a49f3b79e46195c8020eef15ebf">&#9670;&#160;</a></span>var defaultDateFormatString</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">commonsNet.ftp.FTPTimestampParserImpl.var defaultDateFormatString : String = UnixFTPEntryParser.DEFAULT_DATE_FORMAT</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>默认日期格式，不包括最近日期（格式中包括年份）。 </p>

</div>
</div>
<a id="a583a6d866674aca523af93d1340f08af" name="a583a6d866674aca523af93d1340f08af"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a583a6d866674aca523af93d1340f08af">&#9670;&#160;</a></span>var recentDateFormatString</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">commonsNet.ftp.FTPTimestampParserImpl.var recentDateFormatString : ?String = UnixFTPEntryParser.DEFAULT_RECENT_DATE_FORMAT</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>用于格式化最近日期的格式（没有年份）。可能为空。 </p>

</div>
</div>
<a id="aeead6db1d938285a0ff7e2c9c80b6af8" name="aeead6db1d938285a0ff7e2c9c80b6af8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aeead6db1d938285a0ff7e2c9c80b6af8">&#9670;&#160;</a></span>var serverTimeZone</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">commonsNet.ftp.FTPTimestampParserImpl.var serverTimeZone : TimeZone = TimeZone.Local</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>服务器所在的时区 </p>

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>src/ftp/<a class="el" href="ftp__timestamp__parser_8cj.html">ftp_timestamp_parser.cj</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- HTML footer for doxygen 1.9.6-->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="namespacecommonsNet.html">commonsNet</a></li><li class="navelem"><a class="el" href="namespacecommonsNet_1_1ftp.html">ftp</a></li><li class="navelem"><a class="el" href="classcommonsNet_1_1ftp_1_1FTPTimestampParserImpl.html">FTPTimestampParserImpl</a></li>
    <li class="footer">制作者 <img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.6 </li>
  </ul>
</div>
</body>
</html>
